package com.wwj.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "t_product")
public class Product {
    @TableId(value = "pid", type = IdType.INPUT)
    private Integer pid;

    @TableField(value = "pname")
    private String pname;

    @TableField(value = "descriptiion")
    private String descriptiion;

    @TableField(value = "account")
    private Integer account;

    public static final String COL_PID = "pid";
    public static final String COL_PNAME= "pname";

    public static final String COL_DESCRIPTIION = "descriptiion";

    public static final String COL_ACCOUNT = "account";
}